package com.dutchboy.system;


import org.springframework.boot.SpringApplication;
import org.springframework.cloud.client.SpringCloudApplication;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.Bean;
import org.springframework.web.client.RestTemplate;

/**
 * @Author : zhen.xue
 * @Date: 2020-08-25 13:42
 */
@EnableFeignClients(basePackages = "com.dutchboy")
@SpringCloudApplication
public class DutchboySystemApplication {
    public static void main(String[] args) {
        SpringApplication.run(DutchboySystemApplication.class,args);
    }



    //实例化 RestTemplate 实例
    @Bean
    public RestTemplate restTemplate(){
        return new RestTemplate();
    }
}